import request from '@/utils/request'

// 查询宿舍维护列表
export function listDorm(query) {
  return request({
    url: '/infomanagement/dorm/list',
    method: 'get',
    params: query
  })
}

// 查询宿舍维护详细
export function getDorm(dormId) {
  return request({
    url: '/infomanagement/dorm/' + dormId,
    method: 'get'
  })
}

// 新增宿舍维护
export function addDorm(data) {
  return request({
    url: '/infomanagement/dorm',
    method: 'post',
    data: data
  })
}

// 修改宿舍维护
export function updateDorm(data) {
  return request({
    url: '/infomanagement/dorm',
    method: 'put',
    data: data
  })
}

// 删除宿舍维护
export function delDorm(dormId) {
  return request({
    url: '/infomanagement/dorm/' + dormId,
    method: 'delete'
  })
}
